@import (reference) '~antd/es/style/themes/index';
@search-width: 600px;
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);
@bottom-border: #ddd;
@popover-content-padding: 5px;

.headerWrapper {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--color);
  .headerFixed {
    position: fixed;
    top: 0;
  }
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    background-color: #fff;
    transition: 1s linear all;
    .navLeft,
    .navRight {
      display: flex;
      align-items: center;
      padding-right: 35px;
      font-size: 18px;
      .navTitle {
        box-sizing: border-box;
        padding: 10px;
        cursor: pointer;
      }
      .navTitleHome {
        font-size: 25px;
      }
      .navTitle:hover {
        background-color: var(--ant-primary-color-hover);
        border-radius: 8px;
      }
    }
    .searchWrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      width: @search-width;
    }
  }

  .floatBtn {
    position: fixed;
    right: 18px;
    bottom: 60px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    row-gap: 15px;
    span {
      display: inline-block;
      box-sizing: border-box;
      padding: 6px;
      font-size: 22px;
      background-color: #fff;
      border-radius: 50%;
      box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);
      cursor: pointer;
    }
  }
  .navLeftMenu {
    display: none;
  }
  .activateNavText {
    color: var(--ant-primary-color-active);
  }

  .personalOperation {
    position: absolute;
    top: 50%;
    right: -20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transform: translateY(-50%);
    .avatar {
      margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
    }
    .notLogin {
      cursor: pointer;
    }
  }
}
.popoverWrapper {
  min-width: 100px;
  & > p:hover {
    color: #fff;
    background-color: rgb(27, 124, 204);
    cursor: pointer;
  }
}

.menuNavList {
  .navText {
    margin-top: 15px;
    &:hover {
      background-color: var(--ant-primary-color-hover);
    }
  }
}
.userInfoWrapper {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 260px;
  .basicInfo {
    display: flex;
    align-items: center;
    .nameWrapper {
      margin-left: 15px;
    }
  }
  .traceWrapper {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 10px;
    padding-bottom: 6px;
    font-weight: 700;
    border-bottom: 1px solid @bottom-border;
    .text {
      font-weight: 300;
      font-size: 12px;
    }
  }
  .transferWarehouseList {
    display: flex;
    flex-wrap: wrap;
    .item {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      width: 50%;
      margin-top: 15px;
      padding-left: 5px;
      border-radius: 3px;
      cursor: pointer;
      &:hover {
        background-color: #ddd;
      }
    }
  }
  .optionWrapper {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid @bottom-border;
    & > a {
      color: #bbb;
    }
  }
}
.popoverContentWrapper {
  display: flex;
  justify-content: space-between;
  width: calc(@search-width - 50px);
  border-radius: 5px;
  min-height: 400px;
  .leftList,
  .rightList {
    box-sizing: border-box;
    width: 100%;
    .toolbarSearchTitle {
      display: flex;
      justify-content: space-between;
      box-sizing: border-box;
      padding: @popover-content-padding;
      color: #1890ff;
      .tSTIcon {
        color: #bbb;
        cursor: pointer;
      }
    }
  }
  .articleList {
    width: 100%;
    height: 100%;
    text-align: left;
    .articleItem {
      box-sizing: border-box;
      width: 100%;
      margin-top: 10px;
      padding: @popover-content-padding;
      cursor: pointer;
      &:hover {
        background-color: #ddd;
      }
    }
  }
  .noLoginWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    row-gap: 10px;
  }
}
.qqGroup {
  width: 100%;
  height: 100%;
}

@keyframes hidden {
  0% {
    top: 4px;
    right: 25px;
  }

  100% {
    top: 100px;
    right: 50%;
    width: 520px;
    height: 430px;
    background: #fff;
    border-radius: unset;
    transform: translateX(50%);
  }
}

@keyframes show {
  0% {
    top: 100px;
    right: 50%;
    width: 520px;
    height: 430px;
    background: #fff;
    border-radius: unset;
    transform: translateY(50%);
  }

  100% {
    top: 4px;
    right: 25px;
    width: 40px;
    height: 40px;
  }
}

@media only all and (max-width: 650px) {
  .navTitle {
    display: none !important;
  }
  .navLeftMenu {
    display: flex !important;
    align-items: center;
    margin-top: 15px;
    font-size: 24px;
  }
  .headerWrapper {
    padding: 0 30px !important;
  }
}
